differentiate 3 theta + (sin theta)^2 + ln(x) with respect to theta